Blockchain-based image processing method and apparatus

ABSTRACT

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for blockchain-based image processing are provided. One of the methods comprises: obtaining, by a computing device, copyright-related information corresponding to an original image; sending, by the computing device, the copyright-related information to one or more blockchain nodes configured to obtain ciphertext information by encrypting the copyright-related information and to store the ciphertext information in the blockchain; obtaining, by the computing device, the ciphertext information from the blockchain; and performing, by the computing device, obfuscation on a pixel matrix of the original image based on the ciphertext information to generate a target image carrying the copyright-related information.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation application of U.S. patentapplication Ser. No. 16/866,378 filed on May 4, 2020 and entitled“BLOCKCHAIN-BASED IMAGE PROCESSING METHOD AND APPARATUS,” which is acontinuation application of International Patent Application No.PCT/CN2020/070881, filed with the China National Intellectual PropertyAdministration (CNIPA) on Jan. 8, 2020, which is based on and claimspriority to and benefit of Chinese Patent Application No.201910395779.4, filed with the CNIPA on May 13, 2019. The entirecontents of all of the above-identified applications are incorporatedherein by reference.

TECHNICAL FIELD

The specification relates to the technical field of blockchains, and inparticular, to a blockchain-based image processing method, system,storage medium, and apparatus.

BACKGROUND

With the rapid development of computer and Internet technologies, itbecomes increasingly more convenient for people to obtain variousinformation. As a result, however, it also becomes extremely convenientfor people to freely plagiarize and disseminate other people's creationwithout consent of authors. For example, people freely plagiarize anoriginal image by a user on a website, which leads to infringement ofthe image copyright of the user.

Therefore, there is a need for a reliable solution to protect thecopyright of images created by a user.

SUMMARY

The embodiments of the specification provide a blockchain-based imageprocessing method, system, storage medium, and apparatus. Obfuscation isperformed on a pixel matrix of an original image based oncopyright-related information of the original image, to generate atarget image that carries the copyright-related information. In thisway, when the image is plagiarized, tracking may be performed based onthe copyright-related information in the pixel matrix to protect thecopyright of the image. Moreover, since it is the pixel matrix of theoriginal image that has been processed, it becomes more difficult for aperson who plagiarizes the image to eliminate or tamper with thecopyright-related information in the image, which further improves thesecurity of the image copyright. In addition, in the embodiments of thespecification, the copyright-related information of the image isencrypted in a blockchain, and the pixel matrix of the original image isobfuscated using ciphertext information obtained from the encryption,which may achieve unique tracking of the image copyright due to theimmutability of the blockchain, thereby further safeguarding thesecurity of the image copyright.

To solve the above-described technical problems, the embodiments of thespecification are implemented as follows.

The embodiments of the specification provide a blockchain-based imageprocessing method, comprising: obtaining copyright-related informationcorresponding to an original image, wherein the copyright-relatedinformation comprises copyright owner information; publishing thecopyright-related information to a blockchain, so that a node device inthe blockchain encrypts the copyright-related information to obtainciphertext information corresponding to the copyright-relatedinformation; obtaining the ciphertext information from the blockchain;and performing obfuscation, based on the ciphertext information, a pixelmatrix of the original image to generate a target image carrying thecopyright-related information.

The embodiments of the specification further provide a blockchain-basedimage processing apparatus, comprising: a first obtaining moduleconfigured to obtain copyright-related information corresponding to anoriginal image, wherein the copyright-related information comprisescopyright owner information; a publishing module configured to publishthe copyright-related information to a blockchain, so that a node devicein the blockchain encrypts the copyright-related information to obtainciphertext information corresponding to the copyright-relatedinformation; a second obtaining module configured to obtain theciphertext information from the blockchain; and a processing moduleconfigured to obfuscate, based on the ciphertext information, a pixelmatrix of the original image to generate a target image carrying thecopyright-related information.

The embodiments of the specification further provide a blockchain-basedimage processing device, comprising: a processor, and a memoryconfigured to store a computer executable instruction, wherein theexecutable instruction, when being executed, causes the processor to:obtain copyright-related information corresponding to an original image,wherein the copyright-related information comprises copyright ownerinformation; publish the copyright-related information to a blockchain,so that a node device in the blockchain encrypts the copyright-relatedinformation to obtain ciphertext information corresponding to thecopyright-related information; obtain the ciphertext information fromthe blockchain; and obfuscate, based on the ciphertext information, apixel matrix of the original image to generate a target image carryingthe copyright-related information.

The embodiments of the specification further provide a storage mediumconfigured to store a computer executable instruction, wherein theexecutable instruction, when being executed, implements the followingprocess of: obtaining copyright-related information corresponding to anoriginal image, wherein the copyright-related information comprisescopyright owner information; publishing the copyright-relatedinformation to a blockchain, so that a node device in the blockchainencrypts the copyright-related information to obtain ciphertextinformation corresponding to the copyright-related information;obtaining the ciphertext information from the blockchain; and performingobfuscation, based on the ciphertext information, on a pixel matrix ofthe original image to generate a target image carrying thecopyright-related information.

According to some embodiments, the specification provides a method forblockchain-based image processing. The method comprises: obtaining, by acomputing device, copyright-related information corresponding to anoriginal image; sending, by the computing device, the copyright-relatedinformation to one or more blockchain nodes configured to obtainciphertext information by encrypting the copyright-related informationand to store the ciphertext information in the blockchain; obtaining, bythe computing device, the ciphertext information from the blockchain;and performing, by the computing device, obfuscation on a pixel matrixof the original image based on the ciphertext information to generate atarget image carrying the copyright-related information.

According to some embodiments, the specification provides a system forblockchain-based image processing. The system comprises: a processor anda non-transitory computer-readable storage medium storing instructionsexecutable by the processor to cause the system to perform operations.The operations include: obtaining, by a computing device,copyright-related information corresponding to an original image;sending, by the computing device, the copyright-related information toone or more blockchain nodes configured to obtain ciphertext informationby encrypting the copyright-related information and to store theciphertext information in the blockchain; obtaining, by the computingdevice, the ciphertext information from the blockchain; and performing,by the computing device, obfuscation on a pixel matrix of the originalimage based on the ciphertext information to generate a target imagecarrying the copyright-related information.

According to some embodiments, the specification provides anon-transitory computer-readable storage medium for blockchain-basedimage processing. The storage medium is configured with instructionsexecutable by one or more processors to cause the one or more processorsto perform operations. The operations include: obtaining, by a computingdevice, copyright-related information corresponding to an originalimage; sending, by the computing device, the copyright-relatedinformation to one or more blockchain nodes configured to obtainciphertext information by encrypting the copyright-related informationand to store the ciphertext information in the blockchain; obtaining, bythe computing device, the ciphertext information from the blockchain;and performing, by the computing device, obfuscation on a pixel matrixof the original image based on the ciphertext information to generate atarget image carrying the copyright-related information.

In an embodiment, the performing obfuscation on a pixel matrix of theoriginal image based on the ciphertext information comprises encodingthe ciphertext information to obtain a binary string corresponding tothe ciphertext information, and inserting the binary string into thepixel matrix.

In an embodiment, the inserting the binary string into the pixel matrixcomprises: inserting at least one character of the binary string intothe pixel matrix according to a set character spacing; dividing thepixel matrix into a plurality of pixel regions according to a setdividing rule, and inserting the binary string into at least one of thepixel regions; or dividing the pixel matrix into a plurality of pixelregions according to a set dividing rule, and inserting a portion of thebinary string into each of the pixel regions.

In an embodiment, the performing obfuscation on a pixel matrix of theoriginal image based on the ciphertext information comprises: encodingthe ciphertext information to obtain a binary string corresponding tothe ciphertext information; and using the binary string to replaceredundant pixels in the pixel matrix according to a set replacing rule.

In an embodiment, the method further comprises: recording processinformation of performing obfuscation on the pixel matrix; and sendingthe process information to the one or more blockchain nodes for storingin the blockchain.

In an embodiment, the copyright-related information further comprises:current time information; current geographic location information; oridentification information of the computing device.

In an embodiment, the copyright owner information comprises: a name ofthe copyright owner; or an ID number of the copyright owner.

The technical solutions of the embodiments obfuscate on a pixel matrixof an original image based on copyright-related information of theoriginal image, so that a generated target image carries thecopyright-related information. In this way, when the image isplagiarized, tracking may be performed based on the copyright-relatedinformation in the pixel matrix to protect the copyright of the image.Moreover, since it is the pixel matrix of the original image that hasbeen processed, it becomes more difficult for a person who plagiarizesthe image to eliminate or tamper with the copyright-related informationin the image, which further improves the security of the imagecopyright. In addition, in the embodiments of the specification, thecopyright-related information of the image is encrypted in a blockchain,and the pixel matrix of the original image is obfuscated usingciphertext information obtained from the encryption, which may achieveunique tracking of the image copyright due to the immutability of theblockchain, thereby further safeguarding the security of the imagecopyright.

BRIEF DESCRIPTION OF THE DRAWINGS

To more clearly describe the technical solutions of the embodiments ofthe specification or of the current technologies, the accompanyingdrawings to be used in the description of the embodiments or the currenttechnologies will be briefly described below. The accompanying drawingsin the description below are merely some of the embodiments of thespecification. Other drawings may be obtained by one of ordinary skillin the art without creative effort according to these accompanyingdrawings.

FIG. 1 is a first flow chart of a blockchain-based image processingmethod according to some embodiments of the specification.

FIG. 2 is a second flow chart of the blockchain-based image processingmethod according to some embodiments of the specification.

FIG. 3(a) is a diagram of a pixel matrix of an original image in theblockchain-based image processing method according to some embodimentsof the specification.

FIG. 3(b) is a first diagram of the pixel matrix after insertion of abinary string corresponding to copyright-related information in theblockchain-based image processing method according to some embodimentsof the specification.

FIG. 3(c) is a diagram of dividing the pixel matrix of the originalimage into a plurality of pixel regions in the blockchain-based imageprocessing method according to some embodiments of the specification.

FIG. 3(d) is a second diagram of the pixel matrix after insertion of thebinary string corresponding to the copyright-related information in theblockchain-based image processing method according to some embodimentsof the specification.

FIG. 3(e) is a third diagram of the pixel matrix after insertion of thebinary string corresponding to the copyright-related information in theblockchain-based image processing method according to some embodimentsof the specification.

FIG. 4 is a third flow chart of the blockchain-based image processingmethod according to some embodiments of the specification.

FIG. 5 is a fourth flow chart of the blockchain-based image processingmethod according to some embodiments of the specification.

FIG. 6 is a fifth flow chart of the blockchain-based image processingmethod according to some embodiments of the specification.

FIG. 7 is a sixth flow chart of the blockchain-based image processingmethod according to some embodiments of the specification.

FIG. 8 is a schematic diagram of modules of a blockchain-based imageprocessing apparatus according to some embodiments of the specification.

FIG. 9 is a schematic structural diagram of a blockchain-based imageprocessing device according to some embodiments of the specification.

DETAILED DESCRIPTION

To enable those skilled in the art to better understand the technicalsolutions of the specification, the technical solutions of theembodiments of the specification will be completely and thoroughlydescribed below with reference to the accompanying drawings in theembodiments of the specification. The described embodiments are merelysome, but not all, embodiments of the specification. All otherembodiments obtained, based on some embodiments of the specification, byone of ordinary skill in the art without creative effort shall fallwithin the protection scope of the specification.

The concept of the embodiments of the specification is that a pixelmatrix of an image is obfuscated based on copyright-related informationof the image, so that the copyright-related information of the image isembedded into the pixel matrix of the image, thereby protecting thecopyright of the image. Moreover, when the pixel matrix of the image isobfuscated, the copyright-related information of the image is encryptedinto a blockchain, and the pixel matrix is obfuscated using the obtainedciphertext information, thereby further improving the security of theimage copyright due to the immutability of the blockchain. On the basisof this, the embodiments of the specification provide a blockchain-basedimage processing method, apparatus, device, system, and storage medium.

The method according to the embodiments of the specification may beapplied to a terminal device, such as a cell phone, a computer, acomputing device, and the like. Namely, the execution entity of themethod may be a terminal device. For example, may be a blockchain-basedimage processing apparatus installed on the terminal device.

FIG. 1 is a first flow chart of the blockchain-based image processingmethod according to some embodiments of the specification. The methodshown in FIG. 1 at least comprises the following steps.

In Step 102, copyright-related information corresponding to an originalimage is obtained, wherein the copyright-related information comprisescopyright owner information.

Herein, the copyright owner may be a creator of the original image ormay be an authorized user or owner of the original image.

The copyright owner information may comprise a name of the copyrightowner and an ID number of the copyright owner. In an embodiment,information of the copyright owner, such as address information, gender,age, and the like, may also be included, as long as the copyright ownerinformation comprises the information capable of uniquely identifying acopyright owner. The copyright owner information may comprise othersuitable information.

In Step 104, the copyright-related information is sent to a blockchain,so that one or more node devices in the blockchain can encrypt thecopyright-related information to obtain ciphertext informationcorresponding to the copyright-related information and store theciphertext information to the blockchain. This process of sending thecopyright-related information to blockchain nodes for storing in theblockchain can be referred to as publishing the copyright-relatedinformation to the blockchain. Here, the blockchain may refer to ablockchain network comprising one or more blockchain nodes. Eachblockchain node may comprise or be referred to as a node device in theblockchain.

After the copyright-related information corresponding to the originalimage is obtained, as the copyright-related information contains a lotof content, the copyright-related information may be compressed so as tobe embedded into the original image. For example, in the embodiments ofthe specification, the compression of the copyright-related informationmay be achieved through encryption.

In an embodiment, the copyright-related information may be sent to oneor more blockchain nodes of a blockchain, and a node device in theblockchain may encrypt the copyright-related information. Through theencryption, the copyright-related information may be converted into aciphertext string, and store the ciphertext string in the blockchain,thereby achieving the compression of the copyright-related information.

Herein, a Hash encryption algorithm may be used for the encryption ofthe copyright-related information. Namely, Hash conversion is performedon the copyright-related information to obtain a Hash valuecorresponding to the copyright-related information. Other encryptionalgorithms may also be used for the encryption of the copyright-relatedinformation.

Moreover, in the embodiments of the specification, by uploading thecopyright-related information to the blockchain for encryption, theauthenticity of the copyright-related information can be ensured due tothe immutability of the blockchain, which may achieve unique tracking ofthe copyright when copyright infringement occurs later.

In Step 106, the ciphertext information is obtained from the blockchain.

In Step 108, a pixel matrix of the original image is obfuscated based onthe ciphertext information to generate a target image carrying thecopyright-related information.

In the embodiments of the specification, the obfuscation of the pixelmatrix of the original image based on the ciphertext information may beembedding the ciphertext information into the pixel matrix. In this way,the new image (i.e., a target image) obtained from the processingcarries the copyright-related information of the image. When the imageis plagiarized, copyright protection may be achieved through thecopyright-related information carried in the image.

In an embodiment, in the above-described Step 106, the obfuscation of apixel matrix of the original image based on the ciphertext informationmay at least comprise the following two embodiments.

Embodiment I

The ciphertext information is encoded to obtain a binary stringcorresponding to the ciphertext information, and the binary string isinserted into the pixel matrix according to a set inserting rule.

For example, an encoding manner may be used to convert the ciphertextinformation into a binary string, i.e., a string consisting of a seriesof characters 0 and 1, and this string is inserted into the pixel matrixof the original image.

FIG. 2 is a second flow chart of the blockchain-based image processingmethod according to some embodiments of the specification. The methodshown in FIG. 2 at least comprises the following steps.

In Step 202, copyright-related information corresponding to an originalimage is obtained, wherein the copyright-related information comprisescopyright owner information.

In Step 204, the copyright-related information is sent to a blockchain,so that a node device in the blockchain can encrypt thecopyright-related information to obtain ciphertext informationcorresponding to the copyright-related information and store theciphertext information in the blockchain. Here, the blockchain may referto a blockchain network comprising one or more blockchain nodes. Eachblockchain node may comprise or be referred to as a node device in theblockchain.

In Step 206, the ciphertext information is obtained from the blockchain.

In Step 208, the ciphertext information is encoded to obtain a binarystring corresponding to the ciphertext information.

In Step 210, the binary string is inserted into the pixel matrix of theoriginal image according to a set inserting rule.

In Step 212, a target image is generated according to a pixel matrixobtained after the above-described insertion of the binary string.

In this way, the obtained target image is an image embedded with thecopyright-related information of the original image. By embedding thecopyright-related information into the pixel matrix of the image, itbecomes more difficult for a person who plagiarizes the image toeliminate or tamper with the copyright-related information, therebyfacilitating the copyright protection for the image.

In some embodiments, in the above-described Embodiment I, the inserting,according to a set inserting rule, the binary string into the pixelmatrix may be implemented in at least one of the following manners:

-   -   inserting at least one character in the binary string into the        pixel matrix according to a set character spacing;    -   dividing the pixel matrix into a plurality of pixel regions        according to a set dividing rule, and inserting the binary        string into at least one designated pixel region; and    -   dividing the pixel matrix into a plurality of pixel regions        according to a set dividing rule, and inserting a part or a        portion of characters in the binary string into each of the        pixel regions.

For ease of understanding, the above-described various embodiments willbe described one by one in the following examples.

In the above description, inserting at least one character in the binarystring according to a set character spacing may start at any position ofthe pixel matrix. One character in the binary string may be inserted ata set character spacing, such as two pixels, three pixels, etc.

For example, in an embodiment, the pixel matrix corresponding to theoriginal image is 8*10, i.e., the pixel matrix comprises 8 rows ofpixels and 10 columns of pixels, as shown in FIG. 3(a). The binarystring obtained according to the copyright-related information of theoriginal image is 01100111. Starting from the third pixel of each row ofthe pixels, one binary character may be inserted every three pixels. Adiagram of the pixel matrix obtained after the insertion is shown inFIG. 3(b). In FIG. 3(b), to facilitate viewing at which positions thebinary characters are inserted, boxes are used to mark the insertedbinary characters in the diagram. Inserted binary characters do not needto be marked with boxes in practical applications. Finally, an image isgenerated based on the pixel matrix shown in FIG. 3(b), i.e., a targetimage corresponding to the original image is obtained, and the targetimage carries the copyright-related information.

In some other embodiments, the pixel matrix of the original image mayalso be divided into a plurality of pixel regions, and the binary stringmay be inserted into one or more of the pixel regions.

For example, the pixel matrix shown in FIG. 3(a) is divided into fourpixel regions, as shown in FIG. 3(c). The binary string may be insertedinto one of the pixel regions, e.g., inserted into the second pixelregion. A binary string obtained based on the copyright-relatedinformation of the original image is 01100111, and the binary string maybe inserted into the second pixel region of the pixel matrix accordingto a set inserting rule (e.g., inserting one binary string every otherpixel starting from the second pixel of each row of the pixels). Thediagram of the pixel matrix obtained after the insertion is shown inFIG. 3(d).

In addition to the insertion of a whole binary string into one or moreof the pixel regions, the above-described binary string may also bedivided and inserted into all the pixel regions. Namely, a portion of orseveral binary characters in the binary string are inserted into each ofthe pixel regions.

For example, with respect to the pixel matrix shown in FIG. 3(c) (thepixel matrix is divided into four pixel regions), a binary stringobtained based on the copyright-related information of the originalimage is 01100111, and the string 01100111 may be distributed into thefour pixel regions. For example, the string may be distributed evenly ormay be distributed randomly. For example, 01 may be inserted into thefirst pixel region, 10 may be inserted into the second pixel region, 01may be inserted into the third pixel region, and 11 may be inserted intothe fourth pixel region. The same inserting rule or different insertingrules may be applied in each of the pixel regions. In some embodiments,for all the pixel regions, one binary character is inserted every otherpixel starting from the second pixel of each row of the pixels, and thepixel matrix obtained after the insertion is as shown in FIG. 3(e).

Several embodiments of inserting a binary string into a pixel matrix aredescribed above. In addition, other embodiments may also be used toinsert a binary string into the pixel matrix of the original image. Anyembodiment of inserting a binary string into a pixel matrix may be usedin the embodiments of the specification, which will not be enumerated inthe embodiments of the specification.

In the embodiments of the specification, by inserting binary charactersin a binary string into a pixel matrix corresponding to the originalimage according to a set inserting rule, the arrangement of pixels inthe pixel matrix corresponding to the original image changes. Moreover,some new pixels are inserted. When this image is used withoutauthorization, it becomes more difficult for the unauthorized user toeliminate or tamper with the copyright-related information correspondingto the image, thereby achieving the copyright protection for the image.

Embodiment II

The ciphertext information is encoded to obtain a binary stringcorresponding to the ciphertext information, and the binary string isused to replace redundant pixels in the pixel matrix according to a setreplacing rule.

Some redundant pixels may typically exist in the pixel matrix of animage. Therefore, in the embodiments of the specification, the binarycharacters in the binary string may be directly used to replaceredundant pixels in the pixel matrix.

In an embodiment, if the number of redundant pixels is equal to thenumber of binary characters in the binary string, the binary charactersin the binary string may be directly used to sequentially replaceredundant pixels in the pixel matrix. If the number of redundant pixelsis greater than the number of binary characters in the binary string, anumber of redundant pixels equal to the number of binary characters inthe binary string may be selected, and each of the binary characters inthe binary string is used to respectively replace each of the selectedredundant pixels. If the number of redundant pixels is less than thenumber of binary characters in the binary string, the same number ofbinary characters may be used to replace the redundant pixels, while theremaining binary characters may be inserted into the pixel matrixaccording to a set rule.

Several potential situations are listed above. However, replacingredundant pixels in a pixel matrix with binary characters may beperformed in other suitable manners.

FIG. 4 is a third flow chart of the blockchain-based image processingmethod according to some embodiments of the specification. The methodshown in FIG. 4 at least comprises the following steps.

In Step 402, copyright-related information corresponding to an originalimage is obtained, wherein the copyright-related information comprisescopyright owner information.

In Step 404, the copyright-related information is published to ablockchain, so that a node device in the blockchain encrypts thecopyright-related information to obtain ciphertext informationcorresponding to the copyright-related information, and store theciphertext information in the blockchain.

In Step 406, the ciphertext information is obtained from the blockchain.

In Step 408, the ciphertext information is encoded to obtain a binarystring corresponding to the ciphertext information.

In Step 410, the binary string is used to replace redundant pixels inthe pixel matrix according to a set replacing rule.

In Step 412, a target image is generated according to the obtained pixelmatrix.

In the embodiments of the specification, by using binary characters in abinary string to replace redundant pixels in the pixel matrixcorresponding to the original image, the arrangement of pixels in thepixel matrix corresponding to the original image changes. When thisimage is used without authorization, it becomes more difficult for theunauthorized user to eliminate or tamper with the copyright-relatedinformation corresponding to the image, thereby achieving the copyrightprotection for the image.

In addition, in the embodiments of the specification, to facilitateviewing changes to the pixel matrix of the original image, after theabove-described obfuscation of the pixel matrix of the original imagebased on the ciphertext information, the method according to theembodiments of the specification further comprises the following stepsrecording information of the process of performing obfuscation on thepixel matrix, and sending the process information to the one or moreblockchain nodes in the blockchain for storing in the blockchain.

In an embodiment, if the binary string corresponding to the ciphertextinformation is inserted into the pixel matrix according to a setinserting rule, the above-described process information may record thebinary string converted from the ciphertext information and positions inthe pixel matrix at which all the binary characters in the binary stringare inserted.

If the binary string corresponding to the ciphertext information is usedto replace redundant pixels in the pixel matrix according to a setreplacing rule, the above-described process information may record thebinary string corresponding to the ciphertext information and positionsat which all the binary characters in the binary string replace theredundant pixels.

For ease of understanding, the embodiments of the specification will bedescribed below according to the above-described example of insertingthe binary string into the pixel matrix according to a set insertingrule. FIG. 5 is a fourth flow chart of the blockchain-based imageprocessing method according to some embodiments of the specification.The method shown in FIG. 5 at least comprises the following steps.

In Step 502, copyright-related information corresponding to an originalimage is obtained, wherein the copyright-related information comprisescopyright owner information.

In Step 504, the copyright-related information is published to ablockchain, so that a node device in the blockchain encrypts thecopyright-related information to obtain ciphertext informationcorresponding to the copyright-related information and stores theciphertext information in the blockchain.

In Step 506, the ciphertext information is obtained from the blockchain.

In Step 508, the ciphertext information is encoded to obtain a binarystring corresponding to the ciphertext information.

In Step 510, the binary string is inserted into the pixel matrix of theoriginal image according to a set inserting rule, and a target image isgenerated according to a pixel matrix obtained after the above-describedinsertion of the binary string.

In Step 512, information of insertion positions of all the binarycharacters in the binary string in the pixel matrix is recorded.

In Step 514, the recorded information of insertion positions of all thebinary characters in the pixel matrix is uploaded to a blockchain forstorage.

In addition, in the embodiments of the specification, thecopyright-related information may further comprise at least one piece ofthe following information, current time information, current geographiclocation information, and identification information of a computingdevice (i.e., a blockchain-based image processing device being currentlyused.)

In the embodiments of the specification, in addition to the copyrightowner information, the copyright-related information may furthercomprise any combination of the above-described information. Inaddition, the copyright-related information may also comprise otherinformation, which will not be elaborated in the embodiments of thespecification.

For example, the current time information may be a time when theoriginal image is processed, the current geographic location informationmay be information of a current geographic location positioned by theblockchain-based image processing device when the original image isprocessed, and the identification information of a blockchain-basedimage processing device being currently used may be information like anInternet Protocol (IP) address and/or a Media Access Control (MAC)address of the blockchain-based image processing device used when theoriginal image is processed.

In the embodiments of the specification, the current time information,current geographic location information, and identification informationof the device being used are all taken into account. In this way, when acopyright infringement event occurs, infringement determination may bemade with assistance from the above-described information, therebyfurther safeguarding the copyright security of the user.

FIG. 6 is a fifth flow chart of the blockchain-based image processingmethod according to some embodiments of the specification. The methodshown in FIG. 6 comprises the following steps.

In Step 602, copyright-related information of an original image isobtained, wherein the copyright-related information comprises copyrightowner information, current time information, current geographic locationinformation, and identification information of a device being used.

In Step 604, the copyright-related information is published to ablockchain, so that a node device in the blockchain encrypts thecopyright-related information to obtain ciphertext informationcorresponding to the copyright-related information and stores theciphertext information in the blockchain.

In Step 606, the ciphertext information is obtained from the blockchain.

In Step 608, the ciphertext information is encoded to obtain a binarystring corresponding to the ciphertext information.

In Step 610, the binary string is inserted into the pixel matrix of theoriginal image according to a set inserting rule, and a target image isgenerated according to a pixel matrix obtained after the above-describedinsertion of the binary string.

In Step 612, information of insertion positions of all the binarycharacters in the binary string in the pixel matrix is recorded.

In Step 614, the recorded information of insertion positions of all thebinary characters in the pixel matrix is uploaded to a blockchain forstorage.

FIG. 7 is a sixth flow chart of the blockchain-based image processingmethod according to some embodiments of the specification. The methodshown in FIG. 7 comprises the following steps.

In Step 702, copyright-related information of an original image isobtained, wherein the copyright-related information comprises copyrightowner information, current time information, current geographic locationinformation, and identification information of a device being used.

In Step 704, the copyright-related information is published to ablockchain, so that a node device in the blockchain encrypts thecopyright-related information to obtain ciphertext informationcorresponding to the copyright-related information and stores theciphertext information in the blockchain.

In Step 706, the ciphertext information is obtained from the blockchain.

In Step 708, the ciphertext information is encoded to obtain a binarystring corresponding to the ciphertext information.

In Step 710, the binary string is used to replace redundant pixels inthe pixel matrix according to a set replacing rule, and a target imageis generated according to the obtained pixel matrix.

In Step 712, information of positions of all the binary characters inthe binary string in the pixel matrix is recorded.

In Step 714, the recorded information of positions of all the binarycharacters in the pixel matrix is uploaded to a blockchain for storage.

The blockchain-based image processing method according to someembodiments of the specification obfuscates a pixel matrix of anoriginal image based on copyright-related information of the originalimage, so that a generated target image carries the copyright-relatedinformation. In this way, when the image is plagiarized, tracking may beperformed based on the copyright-related information in the pixel matrixto protect the copyright of the image. Moreover, since it is the pixelmatrix of the original image that has been processed, it becomes moredifficult for a person who plagiarizes the image to eliminate or tamperwith the copyright-related information in the image, which furtherimproves the security of the image copyright. In addition, in theembodiments of the specification, the copyright-related information ofthe image is encrypted in a blockchain, and the pixel matrix of theoriginal image is obfuscated using ciphertext information obtained fromthe encryption, which may achieve unique tracking of the image copyrightdue to the immutability of the blockchain, thereby further safeguardingthe security of the image copyright.

Corresponding to the method according to some embodiments of thespecification, the embodiments of the specification further provide,based on the same concept, a blockchain-based image processing apparatusconfigured to implement the method according to the embodiments shown inFIG. 1 to FIG. 7 in the specification. FIG. 8 is a schematic diagram ofmodules of a blockchain-based image processing apparatus according tosome embodiments of the specification. The apparatus shown in FIG. 8comprises: a first obtaining module 802 configured to obtaincopyright-related information corresponding to an original image,wherein the copyright-related information comprises copyright ownerinformation; a publishing module 804 configured to send thecopyright-related information to one or more blockchain nodes of ablockchain, so that one or more blockchain nodes encrypt thecopyright-related information to obtain ciphertext informationcorresponding to the copyright-related information and stores theciphertext information in the blockchain; a second obtaining module 806configured to obtain the ciphertext information from the blockchain; anda processing module 808 configured to obfuscate, based on the ciphertextinformation, on a pixel matrix of the original image to generate atarget image carrying the copyright-related information.

In an embodiment, the processing module 808 comprises: a first encodingunit configured to encode the ciphertext information to obtain a binarystring corresponding to the ciphertext information; and an insertingunit configured to insert, according to a set inserting rule, the binarystring into the pixel matrix.

In an embodiment, the inserting unit comprises any one of the followingsub-units: a first executing sub-unit configured to insert at least onecharacter in the binary string into the pixel matrix according to a setcharacter spacing; or a second executing sub-unit configured to dividethe pixel matrix into a plurality of pixel regions according to a setdividing rule, and insert the binary string into at least one designatedpixel region; or a third executing sub-unit configured to divide thepixel matrix into a plurality of pixel regions according to a setdividing rule, and insert a part or a portion of characters in thebinary string into each of the pixel regions.

In an embodiment, the processing module 808 comprises: a second encodingunit configured to encode the ciphertext information to obtain a binarystring corresponding to the ciphertext information; and a replacing unitconfigured to use the binary string to replace redundant pixels in thepixel matrix according to a set replacing rule.

In an embodiment, the apparatus according to some embodiments of thespecification further comprises: a recording module configured to recordinformation of the process of obfuscation of the pixel matrix; and astoring module configured to store the process information to theblockchain.

In an embodiment, the copyright-related information further comprises atleast one piece of the following information current time information,current geographic location information, and identification informationof a blockchain-based image processing device being currently used.

In an embodiment, the copyright owner information comprises: a name ofthe copyright owner and an ID number of the copyright owner.

The blockchain-based image processing apparatus according to someembodiments of the specification may further implement the methodimplemented by the blockchain-based image processing apparatus accordingto FIG. 1 to FIG. 7, and achieve functions of the blockchain-based imageprocessing apparatus according to the embodiments shown in FIG. 1 toFIG. 7, which will not be elaborated in the embodiments of thespecification.

The blockchain-based image processing apparatus according to someembodiments of the specification obfuscates a pixel matrix of anoriginal image based on copyright-related information of the originalimage, so that a generated target image carries the copyright-relatedinformation. In this way, when the image is plagiarized, tracking may beperformed based on the copyright-related information in the pixel matrixto protect the copyright of the image. Moreover, since it is the pixelmatrix of the original image that has been processed, it becomes moredifficult for a person who plagiarizes the image to eliminate or tamperwith the copyright-related information in the image, which furtherimproves the security of the image copyright. In addition, in theembodiments of the specification, the copyright-related information ofthe image is encrypted in a blockchain, and the pixel matrix of theoriginal image is obfuscated using ciphertext information obtained fromthe encryption, which may achieve unique tracking of the image copyrightdue to the immutability of the blockchain, thereby further safeguardingthe security of the image copyright.

Furthermore, based on the method shown in FIG. 1 to FIG. 7, theembodiments of the specification further provide a blockchain-basedimage processing device as shown in FIG. 9.

The blockchain-based image processing device may vary significantly dueto different configurations or performance, and may comprise one or moreprocessors 901 and memories 902. The memory 902 may store one or morestored applications or data, wherein the memory 902 may achievetransient storage or persistent storage. An application stored in thememory 902 may comprise one or more modules (not shown), and each modulemay comprise information of a series of computer executable instructionsin the blockchain-based image processing device. Furthermore, theprocessor 901 may be configured to communicate with the memory 902 andexecute the information of a series of computer executable instructionsin the memory 902 on the blockchain-based image processing device. Theblockchain-based image processing device may further comprise one ormore power sources 903, one or more wired or wireless network interfaces904, one or more input/output interfaces 905, one or more keyboards 906,etc.

In an embodiment, the blockchain-based image processing device comprisesa memory and one or more programs, wherein the one or more programs arestored in the memory, the one or more programs may comprise one or moremodules, and each module may comprise information of a series ofcomputer executable instructions in the blockchain-based imageprocessing device and may be configured to execute the one or moreprograms by one or more processors, comprising performing the followingcomputer executable instruction information: obtaining copyright-relatedinformation corresponding to an original image, wherein thecopyright-related information comprises copyright owner information;sending the copyright-related information to one or more blockchainnodes of a blockchain, so that one or more blockchain nodes encrypt thecopyright-related information to obtain ciphertext informationcorresponding to the copyright-related information, and store theciphertext information in the blockchain; obtaining the ciphertextinformation from the blockchain; and performing obfuscation on a pixelmatrix of the original image based on the ciphertext information togenerate a target image carrying the copyright-related information.

In an embodiment, when the computer executable instruction informationis executed, the obfuscation on a pixel matrix of the original imagebased on the ciphertext information comprises: encoding the ciphertextinformation to obtain a binary string corresponding to the ciphertextinformation; and inserting, according to a set inserting rule, thebinary string into the pixel matrix.

In an embodiment, when the computer executable instruction informationis executed, the inserting, according to a set inserting rule, thebinary string into the pixel matrix comprises any one of the following:inserting at least one character in the binary string into the pixelmatrix according to a set character spacing; or dividing the pixelmatrix into a plurality of pixel regions according to a set dividingrule, and inserting the binary string into at least one designated pixelregion; or dividing the pixel matrix into a plurality of pixel regionsaccording to a set dividing rule, and inserting a part or a portion ofcharacters in the binary string into each of the pixel regions.

In an embodiment, when the computer executable instruction informationis executed, the obfuscation on a pixel matrix of the original imagebased on the ciphertext information comprises: encoding the ciphertextinformation to obtain a binary string corresponding to the ciphertextinformation; and using the binary string to replace redundant pixels inthe pixel matrix according to a set replacing rule.

In an embodiment, when the computer executable instruction informationis executed, after the obfuscation on a pixel matrix of the originalimage based on the ciphertext information to generate a target imagecarrying the copyright-related information, the following steps may befurther executed: recording information of the process of obfuscation onthe pixel matrix; and storing the process information to the blockchain.

In an embodiment, when the computer executable instruction informationis executed, the copyright-related information further comprises atleast one piece of the following information: current time information,current geographic location information, and identification informationof a blockchain-based image processing device being currently used.

In an embodiment, when the computer executable instruction informationis executed, the copyright owner information comprises a name of thecopyright owner and an ID number of the copyright owner.

The blockchain-based image processing device according to someembodiments of the specification performs obfuscation on a pixel matrixof an original image based on copyright-related information of theoriginal image, so that a generated target image carries thecopyright-related information. In this way, when the image isplagiarized, tracking may be performed based on the copyright-relatedinformation in the pixel matrix to protect the copyright of the image.Moreover, since it is the pixel matrix of the original image that hasbeen processed, it becomes more difficult for a person who plagiarizesthe image to eliminate or tamper with the copyright-related informationin the image, which further improves the security of the imagecopyright. In addition, in the embodiments of the specification, thecopyright-related information of the image is encrypted in a blockchain,and the pixel matrix of the original image is obfuscated usingciphertext information obtained from the encryption, which may achieveunique tracking of the image copyright due to the immutability of theblockchain, thereby further safeguarding the security of the imagecopyright.

Furthermore, based on the method shown in FIG. 1 to FIG. 7, theembodiments of the specification further provide a storage mediumconfigured to store computer executable instruction information. In anembodiment, the storage medium may be a USB flash drive, a CD, a harddrive, and the like. The computer executable instruction informationstored in the storage medium may, when being executed by a processor,implement the following process of: obtaining copyright-relatedinformation corresponding to an original image, wherein thecopyright-related information comprises copyright owner information;sending the copyright-related information to one or more blockchainnodes of a blockchain, so that one or more blockchain nodes encrypt thecopyright-related information to obtain ciphertext informationcorresponding to the copyright-related information, and store theciphertext information in the blockchain; obtaining the ciphertextinformation from the blockchain; and performing obfuscation on a pixelmatrix of the original image based on the ciphertext information togenerate a target image carrying the copyright-related information.

In an embodiment, when the computer executable instruction informationstored in the storage medium is executed by a processor, performingobfuscation on a pixel matrix of the original image based on theciphertext information comprises: encoding the ciphertext information toobtain a binary string corresponding to the ciphertext information; andinserting, according to a set inserting rule, the binary string into thepixel matrix.

In an embodiment, when the computer executable instruction informationstored in the storage medium is executed by a processor, inserting thebinary string into the pixel matrix, according to a set inserting rulecomprises any one of the following methods: inserting at least onecharacter in the binary string into the pixel matrix according to a setcharacter spacing; or dividing the pixel matrix into a plurality ofpixel regions according to a set dividing rule, and inserting the binarystring into at least one designated pixel region; or dividing the pixelmatrix into a plurality of pixel regions according to a set dividingrule, and inserting a part of characters in the binary string into eachof the pixel regions.

In an embodiment, when the computer executable instruction informationstored in the storage medium is executed by a processor, performingobfuscation on a pixel matrix of the original image based on theciphertext information comprises: encoding the ciphertext information toobtain a binary string corresponding to the ciphertext information; andusing the binary string to replace redundant pixels in the pixel matrixaccording to a set replacing rule.

In an embodiment, when the computer executable instruction informationstored in the storage medium is executed by a processor, afterperforming obfuscation on a pixel matrix of the original image based onthe ciphertext information to generate a target image carrying thecopyright-related information, the following steps may be furtherexecuted: recording information of the process of obfuscation on thepixel matrix, and storing the process information to the blockchain.

In an embodiment, when the computer executable instruction informationstored in the storage medium is executed by a processor, thecopyright-related information further comprises at least one piece ofthe following information: current time information, current geographiclocation information, and identification information of ablockchain-based image processing device being currently used.

In an embodiment, when the computer executable instruction informationstored in the storage medium is executed by a processor, the copyrightowner information at least comprises: a name of the copyright owner andan ID number of the copyright owner.

When the computer executable instruction information stored in thestorage medium according to some embodiments of the specification isexecuted by a processor, a pixel matrix of an original image isobfuscated based on copyright-related information of the original image,so that a generated target image carries the copyright-relatedinformation. In this way, when the image is plagiarized, tracking may beperformed based on the copyright-related information in the pixel matrixto protect the copyright of the image. Moreover, since it is the pixelmatrix of the original image that has been processed, it becomes moredifficult for a person who plagiarizes the image to eliminate or tamperwith the copyright-related information in the image, which furtherimproves the security of the image copyright. In addition, in theembodiments of the specification, the copyright-related information ofthe image is encrypted in a blockchain, and the pixel matrix of theoriginal image is obfuscated using ciphertext information obtained fromthe encryption, which may achieve unique tracking of the image copyrightdue to the immutability of the blockchain, thereby further safeguardingthe security of the image copyright.

When the functions disclosed herein are implemented in the form ofsoftware functional units and sold or used as independent products, theycan be stored in a processor executable non-volatile computer readablestorage medium. Particular technical solutions disclosed herein (inwhole or in part) or aspects that contributes to current technologiesmay be embodied in the form of a software product. The software productmay be stored in a storage medium, comprising a number of instructionsto cause a computing device (which may be a personal computer, a server,a network device, and the like) to execute all or some steps of themethods of the embodiments. The storage medium may comprise a flashdrive, a portable hard drive, ROM, RAM, a magnetic disk, an opticaldisc, another medium operable to store program code, or any combinationthereof.

Particular embodiments further provide a system comprising a processorand a non-transitory computer-readable storage medium storinginstructions executable by the processor to cause the system to performoperations corresponding to steps in any method of the embodimentsdisclosed above. Particular embodiments further provide a non-transitorycomputer-readable storage medium configured with instructions executableby one or more processors to cause the one or more processors to performoperations corresponding to steps in any method of the embodimentsdisclosed above.

In the 1990s, an improvement to a technology can be differentiated intoa hardware improvement (e.g., an improvement to a circuit structure,such as a diode, a transistor, a switch, etc.) or a software improvement(an improvement to a flow of a method). With the technologicaldevelopment, however, many current improvements to method flows may bedeemed as direct improvements to hardware circuit structures. Designersalmost always obtain a corresponding hardware circuit structure byprogramming an improved method flow into a hardware circuit. Therefore,it cannot be concluded that an improvement to a method flow cannot berealized with a hardware module. For example, Programmable Logic Device(PLD) (e.g., Field Programmable Gate Array (FPGA)) is such integratedcircuit of which logic functions are determined by a user throughprogramming the device. A designer programs on his/her own to“integrate” a digital system onto one piece of PLD, who does not need torequest a chip manufacturer to design and manufacture a dedicated ICchip. At present, moreover, this type of programming has mostly beenimplemented through “logic compiler” software, rather than manuallymanufacturing the IC chips. The logic compiler software is similar to asoftware compiler used for program development and writing, while aparticular programming language must be used for writing source codesprior to compiling, which is referred to as a Hardware DescriptionLanguage (HDL). There is not just one, but many types of HDL, such asABEL (Advanced Boolean Expression Language), AHDL (Altera HardwareDescription Language), Confluence, CUPL (Cornell University ProgrammingLanguage), HDCal, JHDL (Java Hardware Description Language), Lava, Lola,MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The mostcommonly used right now includes VHDL (Very-High-Speed IntegratedCircuit Hardware Description Language) and Verilog. One of ordinaryskill in the art should also be aware that it would be very easy toobtain a hardware circuit to implement a logic method flow by using theabove HDLs to carry out a little bit logic programming on the methodflow and program the method flow into an IC.

A controller may be implemented in any proper manner. For example, acontroller may be in, for example, a form of a microprocessor orprocessor, as well as a computer readable medium that stores computerreadable program codes (e.g., software or firmware) capable of beingexecuted by the (micro) processor, a logic gate, a switch, anApplication Specific Integrated Circuit (ASIC), a programmable logiccontroller, and an embedded microcontroller. Examples of the controllerinclude, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320.A memory controller may further be implemented as a part of controllogic of a memory. One of ordinary skill in the art should also be awarethat, in addition to that a controller is implemented in a manner ofpure computer readable program codes, it is totally feasible to performlogic programming on steps of a method to enable a controller toimplement the same functions in a form of a logic gate, a switch, anASIC, a programmable logic controller, an embedded microcontroller, etc.Therefore, such controller may be deemed as a hardware part, whiledevices comprised in the controller and configured to achieve variousfunctions may also be deemed as a structure inside the hardware part.Alternatively, devices configured to achieve various functions may evenbe deemed as both software modules to implement a method and a structureinside a hardware part.

The system, apparatus, module, or unit described in the aboveembodiments may be implemented, for example, by a computer chip orentity, or implemented by a product having a function. A typicalimplementation device is a computer. In one example, a computer may be,for example, a personal computer, a laptop computer, a cellular phone, acamera phone, a smart phone, a personal digital assistant, a mediumplayer, a navigation device, an email device, a game console, a tabletcomputer, a wearable device, or a combination of any of these devices.

For convenience of description, the above apparatus is divided intovarious units according to functions for description. Functions of theunits may be implemented in one or more pieces of software and/orhardware when the specification is implemented.

One of ordinary skill in the art should understand that the embodimentsof the specification may be provided as a method, a system, or acomputer program product. Therefore, the specification may beimplemented as a complete hardware embodiment, a complete softwareembodiment, or an embodiment combing software and hardware. Moreover,the specification may be in the form of a computer program productimplemented on one or more computer usable storage media (including, butnot limited to, a magnetic disk memory, CD-ROM, an optical memory, etc.)comprising computer usable program codes.

The specification is described with reference to flowcharts and/or blockdiagrams of the method, device (system), and computer program productaccording to the embodiments of the specification. It should beunderstood that computer program instruction information may be used toimplement each process and/or block in the flowcharts and/or blockdiagrams and a combination of processes and/or blocks in the flowchartsand/or block diagrams. The computer program instruction information maybe provided for a general-purpose computer, a special-purpose computer,an embedded processor, or a processor of other programmable dataprocessing devices to generate a machine, causing instructioninformation executed by a computer or a processor of other programmabledata processing devices to generate an apparatus for implementing afunction specified in one or more processes in the flowcharts and/or inone or more blocks in the block diagrams.

The computer program instruction information may also be stored in acomputer readable memory that can instruct a computer or otherprogrammable data processing devices to work in a particular manner,causing the instruction information stored in the computer readablememory to generate a manufactured article that includes an instructioninformation apparatus. The instruction information apparatus implementsa function specified in one or more processes in the flowcharts and/orin one or more blocks in the block diagrams.

The computer program instruction information may also be loaded onto acomputer or other programmable data processing devices, causing a seriesof operational steps to be performed on the computer or otherprogrammable devices, thereby generating computer-implementedprocessing. Therefore, the instruction information executed on thecomputer or other programmable devices provides steps for implementing afunction specified in one or more processes in the flowcharts and/or inone or more blocks in the block diagrams.

In a typical configuration, a computation device includes one or moreprocessors (CPUs), input/output interfaces, network interfaces, and amemory.

The memory may include computer readable media, such as a volatilememory, a Random-Access Memory (RAM), and/or a non-volatile memory,e.g., a Read-Only Memory (ROM) or a flash RAM. The memory is an exampleof a computer readable medium.

Computer readable media include permanent, volatile, mobile, andimmobile media, which can implement information storage through anymethod or technology. The information may be computer readableinstruction information, data structures, program modules, or otherdata. Examples of storage media of computers include, but are notlimited to, Phase-change Random Access Memories (PRAMs), Static RandomAccess Memories (SRAMs), Dynamic Random Access Memories (DRAMs), othertypes of Random Access Memories (RAMs), Read-Only Memories (ROMs),Electrically Erasable Programmable Read-Only Memories (EEPROMs), flashmemories or other memory technologies, Compact Disk Read-Only Memories(CD-ROMs), Digital Versatile Discs (DVDs) or other optical memories,magnetic cassettes, cassette and disk memories or other magnetic memorydevices, or any other non-transmission media, which can be used forstoring information accessible to a computation device. According to thedefinitions in the specification, the computer readable media do notinclude transitory media, such as modulated data signals and carriers.

It should be further noted that the terms of “including,” “comprising”or any other variants of the terms are intended to encompass anon-exclusive inclusion, causing a process, method, product, or devicecomprising a series of elements to not only comprise these elements, butalso comprise other elements that are not clearly listed, or furthercomprise elements that are inherent to the process, method, product, ordevice. When there is no further restriction, elements defined by thestatement “comprising one . . . ” does not exclude that a process,method, product, or device comprising the above elements furthercomprises additional identical elements.

One of ordinary skill in the art should understand that the embodimentsof the specification may be provided as a method, a system, or acomputer program product. Therefore, the specification may beimplemented as a complete hardware embodiment, a complete softwareembodiment, or an embodiment combing software and hardware. Moreover,the specification may be in the form of a computer program productimplemented on one or more computer usable storage media (including, butnot limited to, a magnetic disk memory, CD-ROM, an optical memory, etc.)comprising computer usable program codes.

The specification may be described in a regular context of a computerexecutable instruction information that is executed by a computer, suchas a program module. Generally, the program module comprises a routine,a program, an object, a component, a data structure, etc. for executinga particular task or implementing a particular abstract data type. Thespecification may also be practiced in distributed computingenvironments. In these distributed computing environments, remoteprocessing devices connected via communication networks carry out tasks.In the distributed computing environments, a program module may belocated in local and remote computer storage media, including storagedevices.

The embodiments in the specification are described in a progressivemanner with each embodiment focused on differences from otherembodiments, and the embodiments may be mutually referenced foridentical or similar parts. In particular, the system embodiment isdescribed in a relatively simple manner, as the system embodiment issubstantially similar to the method embodiment. The description of themethod embodiment may be referenced for related parts.

The above-described is only embodiments of the specification, which arenot used to limit the specification. To one of ordinary skill in theart, the specification may have various modifications and changes. Anymodification, equivalent substitution, or improvement made within thespirit and principle of the specification shall be encompassed by theclaims of the specification.

What is claimed is:
 1. A blockchain-based image processing method,comprising: obtaining, by a computing device, copyright-relatedinformation corresponding to an original image; sending, by thecomputing device, the copyright-related information to one or moreblockchain nodes of a blockchain, wherein the one or more blockchainnodes are configured to obtain ciphertext information by encrypting thecopyright-related information and to store the ciphertext information inthe blockchain; obtaining, by the computing device, the binary stringfrom the blockchain; encoding, by the computing device, the ciphertextinformation to generate a binary string having a plurality of bits;inserting, by the computing device, the binary string into a firstbinary pixel matrix of the original image to generate a target imagehaving a second binary pixel matrix; recording, by the computing device,position information indicating positions of the bits of the binarystring in the second binary pixel matrix; and uploading, by thecomputing device, the position information to the one or more blockchainnodes for storage in the one or more blockchain nodes.
 2. The method ofclaim 1, wherein the inserting, by the computing device, the binarystring into a first binary pixel matrix of the original image togenerate a target image having a second binary pixel matrix comprisesone of the following: inserting at least one bit of the binary stringinto the first binary pixel matrix according to a set bit spacing;dividing the first binary pixel matrix into a plurality of pixel regionsaccording to a set dividing rule, and inserting the binary string intoat least one of the pixel regions; or dividing the first binary pixelmatrix into a plurality of pixel regions according to a set dividingrule, and inserting a portion of the binary string into each of thepixel regions.
 3. The method of claim 1, wherein the inserting, by thecomputing device, the binary string into a first binary pixel matrix ofthe original image to generate a target image having a second binarypixel matrix comprises: using the binary string to replace redundantpixels in the first binary pixel matrix.
 4. The method of claim 3,wherein the using the binary string to replace redundant pixels in thefirst binary pixel matrix comprises: determining whether a total numberof bits of the binary string is greater than, equal to, or less than atotal number of the redundant pixels; in response to determining thatthe total number of bits of the binary string is equal to the totalnumber of the redundant pixels, replacing all pixel values of theredundant pixels with the bits of the binary string; in response todetermining that the total number of bits of the binary string isgreater than the total number of the redundant pixels, replacing allpixel values of the redundant pixels with a number of the bits of thebinary string equal to the total number of the redundant pixels, andinserting a remaining number of the bits of the binary string into thefirst binary pixel matrix; and in response to determining that the totalnumber of bits of the binary string is less than the total number of theredundant pixels, selecting a number of the redundant pixels equal tothe total number of bits of the binary string, and replacing pixelvalues of the selected redundant pixels with the bits of the binarystring.
 5. The method of claim 1, wherein the copyright-relatedinformation comprises: current time information; current geographiclocation information; or identification information of the computingdevice.
 6. The method of claim 1, wherein the copyright-relatedinformation further comprises copyright owner information, wherein thecopyright owner information comprises: a name of the copyright owner; oran ID number of the copyright owner.
 7. A blockchain-based imageprocessing method, comprising: obtaining, by a computing device,copyright-related information corresponding to an original image;sending, by the computing device, the copyright-related information toone or more blockchain nodes of a blockchain, wherein the one or moreblockchain nodes are configured to obtain ciphertext information byencrypting the copyright-related information and to store the ciphertextinformation in the blockchain; obtaining, by the computing device, theciphertext information from the blockchain; and generating, by thecomputing device, a target image by encoding the ciphertext informationinto the original image.
 8. The method of claim 7, wherein the encodingthe ciphertext information into the original image comprises: encodingthe ciphertext information to generate a binary string corresponding tothe ciphertext information; and inserting the binary string into a pixelmatrix of the original image.
 9. The method of claim 8, wherein theinserting the binary string into a pixel matrix of the original imagecomprises one of the following: inserting at least one bit of the binarystring into the pixel matrix according to a set bit spacing; dividingthe pixel matrix into a plurality of pixel regions according to a setdividing rule, and inserting the binary string into at least one of thepixel regions; or dividing the pixel matrix into a plurality of pixelregions according to a set dividing rule, and inserting a portion of thebinary string into each of the pixel regions.
 10. The method of claim 8,wherein the inserting the binary string into a pixel matrix of theoriginal image comprises: using the binary string to replace redundantpixels in the pixel matrix.
 11. The method of claim 10, wherein theusing the binary string to replace redundant pixels in the pixel matrixcomprises: determining whether a total number of bits of the binarystring is greater than, equal to, or less than a total number of theredundant pixels; in response to determining that the total number ofbits of the binary string is equal to the total number of the redundantpixels, replacing all pixel values of the redundant pixels with the bitsof the binary string; in response to determining that the total numberof bits of the binary string is greater than the total number of theredundant pixels, replacing all pixel values of the redundant pixelswith a number of the bits of the binary string equal to the total numberof the redundant pixels, and inserting a remaining number of the bits ofthe binary string into the pixel matrix; and in response to determiningthat the total number of bits of the binary string is less than thetotal number of the redundant pixels, selecting a number of theredundant pixels equal to the total number of bits of the binary string,and replacing pixel values of the selected redundant pixels with thebits of the binary string.
 12. The method of claim 7, furthercomprising: recording process information of encoding the ciphertextinformation into the original image; and uploading the processinformation to the one or more blockchain nodes for storage in theblockchain.
 13. The method of claim 7, wherein the copyright-relatedinformation comprises: current time information; current geographiclocation information; or identification information of the computingdevice.
 14. A blockchain-based image processing system, comprising aprocessor and a non-transitory computer-readable storage medium storinginstructions executable by the processor to cause the system to performoperations comprising: obtaining copyright-related informationcorresponding to an original image; sending the copyright-relatedinformation to one or more blockchain nodes of a blockchain, wherein theone or more blockchain nodes are configured to obtain ciphertextinformation by encrypting the copyright-related information and to storethe ciphertext information in the blockchain; obtaining the ciphertextinformation from the blockchain; and generating a target image byencoding the ciphertext information into the original image.
 15. Thesystem of claim 14, wherein the encoding the ciphertext information intothe original image to generate a target image comprises: encoding theciphertext information to generate a binary string corresponding to theciphertext information; and inserting the binary string into a pixelmatrix of the original image.
 16. The system of claim 15, wherein theinserting the binary string into a pixel matrix of the original imagecomprises one of the following: inserting at least one bit of the binarystring into the pixel matrix according to a set bit spacing; dividingthe pixel matrix into a plurality of pixel regions according to a setdividing rule, and inserting the binary string into at least one of thepixel regions; or dividing the pixel matrix into a plurality of pixelregions according to a set dividing rule, and inserting a portion of thebinary string into each of the pixel regions.
 17. The system of claim15, wherein the inserting the binary string into a pixel matrix of theoriginal image comprises: using the binary string to replace redundantpixels in the pixel matrix.
 18. The system of claim 17, wherein theusing the binary string to replace redundant pixels in the pixel matrixcomprises: determining whether a total number of bits of the binarystring is greater than, equal to, or less than a total number of theredundant pixels; in response to determining that the total number ofbits of the binary string is equal to the total number of the redundantpixels, replacing all pixel values of the redundant pixels with the bitsof the binary string; in response to determining that the total numberof bits of the binary string is greater than the total number of theredundant pixels, replacing all pixel values of the redundant pixelswith a number of the bits of the binary string equal to the total numberof the redundant pixels, and inserting a remaining number of the bits ofthe binary string into the pixel matrix; and in response to determiningthat the total number of bits of the binary string is less than thetotal number of the redundant pixels, selecting a number of theredundant pixels equal to the total number of bits of the binary string,and replacing pixel values of the selected redundant pixels with thebits of the binary string.
 19. The system of claim 14, wherein theoperations further comprise: recording process information of encodingthe ciphertext information into the original image; and uploading theprocess information to the one or more blockchain nodes for storage inthe blockchain.
 20. The system of claim 14, wherein thecopyright-related information comprises: current time information;current geographic location information; or identification informationof the computing device.